import request from "@/utils/request";
//运费模板列表
const templateIndex = params => {
  return request({
    url: "/admin/delivery.ExpressTemplates/templates_lst",
    method: "post",
    data: params
  });
};

//运费模板设置默认
const templateEditDefault = params => {
  return request({
    url: "/admin/delivery.ExpressTemplates/templateEditDefault",
    method: "post",
    data: params
  });
};
//运费模板设置默认
const templateEdit = params => {
  return request({
    url: "/admin/delivery.ExpressTemplates/templateEdit",
    method: "post",
    data: params
  });
};
//配送区域列表
const templateDistributionArea = params => {
  return request({
    url: "/admin/delivery.ExpressTemplates/templateDistributionArea",
    method: "post",
    data: params
  });
};

//运费模板添加
const templateAdd = params => {
  return request({
    url: "/admin/delivery.ExpressTemplates/templateAdd",
    method: "post",
    data: params
  });
};
//运费模板详情
const templateDetail = params => {
  return request({
    url: "/admin/delivery.ExpressTemplates/templateDetail",
    method: "post",
    data: params
  });
};

//运费模板删除
const templateDelete = params => {
  return request({
    url: "/admin/delivery.ExpressTemplates/templateDelete",
    method: "post",
    data: params
  });
};
//物流公司列表
const companyIndex = params => {
  return request({
    url: "/admin/delivery.ExpressTemplates/companyIndex",
    method: "post",
    data: params
  });
};
//物流公司添加
const companyAdd = params => {
  return request({
    url: "/admin/delivery.ExpressTemplates/companyAdd",
    method: "post",
    data: params
  });
};
//物流公司编辑
const companyEdit = params => {
  return request({
    url: "/admin/delivery.ExpressTemplates/companyEdit",
    method: "post",
    data: params
  });
};
//物流公司详情
const companyDetail = params => {
  return request({
    url: "/admin/delivery.ExpressTemplates/detail",
    method: "post",
    data: params
  });
};

//物流公司删除
const companyDelete = params => {
  return request({
    url: "/admin/delivery.ExpressTemplates/companyDelete",
    method: "post",
    data: params
  });
};

export default {
  templateIndex,
  templateEditDefault,
  templateEdit,
  templateDistributionArea,
  templateAdd,
  templateDetail,
  templateDelete,
  companyIndex,
  companyAdd,
  companyEdit,
  companyDetail,
  companyDelete
};
